package com.cskaoyan.controller.wx.home;

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.vo.wx.home.HomeIndexVo;
import com.cskaoyan.service.wx.home.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: bwj
 * @Date: 2022/09/08/23:57
 * @Description:
 */
@RestController
@RequestMapping("wx/home")
public class HomeController {
    @Autowired
    HomeService homeService;

    /**
    * @Author: 宾文杰 @Description: 微信全部商品信息 @Date: 2022/9/9
    */
    @RequestMapping("index")
    public BaseRespVo<HomeIndexVo> homeIndex(){
        HomeIndexVo homeIndexVo=homeService.homeIndex();
        return BaseRespVo.ok(homeIndexVo);
    }
}
